<?php
$name = trim($_POST['name']);
$age = trim($_POST['age']);

echo 'Name:'.$name.'<br />';
echo 'Age:'.$age;
?>